Feature: 10. Now we can test the Sentry's Recordings
Given
I'm using the app
And
class "initialLoader" is invisible
And
the Primary Stream View is visible
And
the Secondary Stream View is visible
And
the Bottom Menu is visible
No such file
No such file
No such file
No such file
Before
Hook
java.lang.AssertionError: Expected condition failed: waiting for visibility of element located by By.xpath: //button[contains(@class, 'SystemBar')]/button[1] (tried for 5 second(s) with 100 milliseconds interval) at org.junit.Assert.fail(Assert.java:88) at extern.bsb.tests.ui.then.WaitForElement.Then__is_visible(WaitForElement.java:69) at ✽.the Record Detection Button is visible(file:///media/PTJenkins/jenkins_home/jenkins/workspace/omated_Testing_ShortTermSentry_2/short_term_sentry/release/10.Recordings.feature:12)
And
the Record Detection Button is clicked
And
the Recording Options is visible
And
the Detection Missing is clicked
And
the Snapshot Recording Notification SideBar is visible
And
the Add Note To Recording is clicked
And
the Snapshot Recording Note Box is visible
When
I insert "detection missing test" in the Snapshot Recording Note Textfield field
And
the Save Note Button is clicked
Then
the note "detection missing test" exists in the snapshot folder
And
I wait 5 seconds
And
the Cancel Snapshot Recording is clicked
And
I wait 5 seconds
Then
the folder "/home/power/POWER_Data/SDCard/DataSink/" is empty
And
I wait 2 seconds
Before
Hook
java.lang.AssertionError: Expected condition failed: waiting for visibility of element located by By.xpath: //button[contains(@class, 'SystemBar')]/button[1] (tried for 5 second(s) with 100 milliseconds interval) at org.junit.Assert.fail(Assert.java:88) at extern.bsb.tests.ui.then.WaitForElement.Then__is_visible(WaitForElement.java:69) at ✽.the Record Detection Button is visible(file:///media/PTJenkins/jenkins_home/jenkins/workspace/omated_Testing_ShortTermSentry_2/short_term_sentry/release/10.Recordings.feature:29)
And
the Record Detection Button is clicked
And
the Recording Options is visible
And
the Incorrect Detection is clicked
And
the Snapshot Recording Notification SideBar is visible
And
the Add Note To Recording is clicked
And
the Snapshot Recording Note Box is visible
When
I insert "Incorrect Detection test" in the Snapshot Recording Note Textfield field
And
the Save Note Button is clicked
Then
the note "Incorrect Detection test" exists in the snapshot folder
And
the Stop Snapshot Recording Button is clicked
And
I wait 2 seconds
Before
Hook
java.lang.AssertionError: Expected condition failed: waiting for visibility of element located by By.xpath: //button[contains(@class, 'SystemBar')]/button[1] (tried for 5 second(s) with 100 milliseconds interval) at org.junit.Assert.fail(Assert.java:88) at extern.bsb.tests.ui.then.WaitForElement.Then__is_visible(WaitForElement.java:69) at ✽.the Record Detection Button is visible(file:///media/PTJenkins/jenkins_home/jenkins/workspace/omated_Testing_ShortTermSentry_2/short_term_sentry/release/10.Recordings.feature:44)
And
the Record Detection Button is clicked
And
the Recording Options is visible
And
the Incorrect Icon is clicked
And
the Snapshot Recording Notification SideBar is visible
And
the Add Note To Recording is clicked
And
the Snapshot Recording Note Box is visible
When
I insert "Incorrect Icon test" in the Snapshot Recording Note Textfield field
And
the Save Note Button is clicked
And
I wait 2 seconds
And
the Snapshot Recording Notification SideBar is visible
And
the Add Note To Recording is clicked
And
the text on element Snapshot Recording Note Textfield is "Incorrect Icon test"
And
the Save Note Button is clicked
And
the note "Incorrect Icon test" exists in the snapshot folder
Then
the Add Note To Recording is clicked
And
I clear the text in the Snapshot Recording Note Textfield field
When
I insert "Changed note" in the Snapshot Recording Note Textfield field
Then
the Save Note Button is clicked
And
I wait 2 seconds
And
the note "Changed note" exists in the snapshot folder
And
the Stop Snapshot Recording Button is clicked
And
the Thank you Popup is visible
Before
Hook
java.lang.AssertionError: Expected condition failed: waiting for visibility of element located by By.xpath: //button[contains(@class, 'SystemBar')]/button[1] (tried for 5 second(s) with 100 milliseconds interval) at org.junit.Assert.fail(Assert.java:88) at extern.bsb.tests.ui.then.WaitForElement.Then__is_visible(WaitForElement.java:69) at ✽.the Record Detection Button is visible(file:///media/PTJenkins/jenkins_home/jenkins/workspace/omated_Testing_ShortTermSentry_2/short_term_sentry/release/10.Recordings.feature:69)
And
the Record Detection Button is clicked
And
the Recording Options is visible
And
the Incorrect Boundaries is clicked
And
the Snapshot Recording Notification SideBar is visible
And
I wait 5 seconds
Then
the type "incorrect-boundaries" exists in the snapshot folder
And
I wait 5 seconds
And
the Stop Snapshot Recording Button is clicked
Before
Hook
java.lang.AssertionError: Expected condition failed: waiting for visibility of element located by By.xpath: //button[contains(@class, 'SystemBar')]/button[1] (tried for 5 second(s) with 100 milliseconds interval) at org.junit.Assert.fail(Assert.java:88) at extern.bsb.tests.ui.then.WaitForElement.Then__is_visible(WaitForElement.java:69) at ✽.the Record Detection Button is visible(file:///media/PTJenkins/jenkins_home/jenkins/workspace/omated_Testing_ShortTermSentry_2/short_term_sentry/release/10.Recordings.feature:80)
And
the Record Detection Button is clicked
And
the Recording Options is visible
And
the Recording Options Close Button is clicked
And
the Snapshot Recording Notification SideBar is visible
Then
the type "undefined" exists in the snapshot folder
And
I wait 5 seconds
And
the Cancel Snapshot Recording is clicked
Then
the Snapshot Recording Notification SideBar is invisible
And
the Record Detection Button is clicked
And
the Other or Skip is clicked
And
the Snapshot Recording Notification SideBar is visible
Then
the type "other" exists in the snapshot folder
Then
I wait 120 seconds
And
the Snapshot Recording Notification SideBar is invisible
Before
Hook
Given
the Settings Button is clicked
And
the Settings Menu is visible
And
the Setup Settings Button is clicked
And
a menu "NMEA SETUP" is visible
And
I insert "powerdev123" in the Installer Login field
And
the Login as installer Button is clicked
And
a class "installerMode developer" is visible
And
the Developer Settings Button is clicked
And
the Developer is active
java.lang.AssertionError: Button with xpath "//div[contains(@class, 'settings sidePanel grid-element')]/div[2]/div[1]/div/div[1]/div/div/label/button" can't be clicked!! null at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.assertTrue(Assert.java:41) at extern.bsb.tests.ui.when.Click.When__I_click_the_button_id(Click.java:201) at ✽.the Allow Stream Recordings is clicked(file:///media/PTJenkins/jenkins_home/jenkins/workspace/omated_Testing_ShortTermSentry_2/short_term_sentry/release/10.Recordings.feature:106)
And
I wait 30 seconds
And
the Stream Recording Button is visible
And
the Stream Recording Button is clicked
And
I wait 150 seconds
And
the Stream Recording Button is clicked
And
the Allow Stream Recordings is clicked
And
I wait 30 seconds
And
I download the folder "/home/power/POWER_Data/SDCard/DataSink" to "Stream_Recordings"
Then
I run the Video Repair script
And
I run the Framerate script
And
I delete files in the folder "/home/power/POWER_Data/SDCard/DataSink/"
And
the Manual Button is clicked
And
the DevMode Quit Button is clicked
And
a class "installerMode" is invisible
Before
Hook
Given
I delete files in the folder "/home/power/gst_Recordings/"
Connected
File Uploaded to FTP Server Sucessfully.
Then
I run the gstShark script
And
I delete files in the folder "/home/power/gst_Recordings/"
After
Hook